﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GnufBase.h"

/// \file GnufToolbarWatcher.h
/// \brief ToolBar监视者
namespace gnuf {
    
    class Button;
    class ButtonEx;
    class DropdownMenu;
    class DropdownMenuEntry;
    
    class IToolbarWatcher
    {
    public:
        /// \brief 响应增加按钮的事件
        /// \details 新增按钮时，将Button连接到具有对应ID的ButtonControl上
        /// \param buttonId 增加的按钮对应的ID
        /// \param button 增加的按钮的指针
        /// \see ButtonEx ButtonControl
        virtual void onAdded(const std::wstring & buttonId, ButtonEx * button) const = 0;
    };
}
